home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / misc / o-z / x-windows / gs262 / makefile < prev    next >
Encoding:
Makefile  |  1995-12-22  |  67.2 KB  |  1,954 lines

  1. #    Copyright (C) 1989, 1990, 1991, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, Unix/ANSI C/X11 configuration.
  20.  
  21. # ------------------------------- Options ------------------------------- #
  22.  
  23. ####### The following are the only parts of the file you should need to edit.
  24.  
  25. # ------ Generic options ------ #
  26.  
  27. # Define the installation commands and target directories for
  28. # executables and files.  Only relevant to `make install'.
  29.  
  30. INSTALL = install -c
  31. INSTALL_PROGRAM = $(INSTALL) -m 775
  32. INSTALL_DATA = $(INSTALL) -m 664
  33.  
  34. prefix = /usr/local
  35. exec_prefix = $(prefix)
  36. bindir = $(exec_prefix)/bin
  37. datadir = $(prefix)/lib
  38. gsdatadir = ghostscript:
  39.  
  40. # Define the default directory/ies for the runtime
  41. # initialization and font files.  Separate multiple directories with a :.
  42.  
  43. GS_LIB_DEFAULT=$(gsdatadir),$(gsdatadir)fonts
  44.  
  45. # Define the name of the Ghostscript initialization file.
  46. # (There is no reason to change this.)
  47.  
  48. GS_INIT=gs_init.ps
  49.  
  50. # Choose generic configuration options.
  51.  
  52. # -DDEBUG
  53. #    includes debugging features (-Z switch) in the code.
  54. #      Code runs substantially slower even if no debugging switches
  55. #      are set.
  56. # -DNOPRIVATE
  57. #    makes private (static) procedures and variables public,
  58. #      so they are visible to the debugger and profiler.
  59. #      No execution time or space penalty.
  60.  
  61. GENOPT=
  62.  
  63. # Define the name of the executable file.
  64.  
  65. GS=gs
  66.  
  67. # ------ Platform-specific options ------ #
  68.  
  69. # Define the name of the C compiler.  If the standard compiler for your
  70. # platform is ANSI-compatible, leave this line commented out; if not,
  71. # uncomment the line and insert the proper definition.
  72.  
  73. CC=scc
  74.  
  75. # Define the other compilation flags.
  76. # Add -DBSD4_2 for 4.2bsd systems.
  77. # Add -DSYSV for System V or DG/UX.
  78. # Add -DSVR4 (not -DSYSV) for System V release 4.
  79. # The HP 400 seems to want -Aa -w -D_HPUX_SOURCE.
  80. # XCFLAGS can be set from the command line.
  81.  
  82. #CFLAGS=-O $(XCFLAGS)
  83. CFLAGS=-Iinclude -DNOSTDERR
  84.  
  85. SCOPTIONS = Parms=stack Code=far Data=far Cpu=68020 AFP Saveds MemSize=huge \
  86.         NoStkChk NoWVRet UtilLib OptTime IdLen=63 \
  87.         Ignore=36,92,94,209,217
  88.  
  89. # Define platform flags for ld.
  90. # SunOS and some others want -X; Ultrix wants -x.
  91. # SunOS 4.n may need -Bstatic.
  92. # Apollos running DomainOS don't support -X (and -x has no effect).
  93. # XLDFLAGS can be set from the command line.
  94.  
  95. LDFLAGS=$(XLDFLAGS) -Llib
  96.  
  97. # Define any extra libraries to link into the executable.
  98. # ISC Unix 2.2 wants -linet.
  99. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  100. # (Libraries required by individual drivers are handled automatically.)
  101.  
  102. EXTRALIBS=-lunix
  103.  
  104. # Define the include switch(es) for the X11 header files.
  105. # This can be null if handled in some other way (e.g., the files are
  106. # in /usr/include, or the directory is supplied by an environment variable).
  107. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  108. # not in $(XINCLUDE).
  109.  
  110. XINCLUDE=-IX11:sasc/include -DAMIWIN
  111.  
  112. # Define the directory/ies for the X11 library files.
  113. # This can be null if these files are in the default linker search path.
  114.  
  115. XLIBDIRS=-LX11:sasc/lib
  116.  
  117. # ------ Devices and features ------ #
  118.  
  119. # Choose the language feature(s) to include.  See gs.mak for details.
  120.  
  121. FEATURE_DEVS=filter.dev dps.dev level2.dev
  122.  
  123. # Choose the device(s) to include.  See devs.mak for details.
  124.  
  125. DEVICE_DEVS=x11.dev pcx256.dev tiffg3.dev
  126. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev ppm.dev ppmraw.dev bit.dev
  127.  
  128. # ---------------------------- End of options --------------------------- #
  129.  
  130. # Define the name of the makefile -- used in dependencies.
  131.  
  132. MAKEFILE=Makefile
  133.  
  134. # Define the ANSI-to-K&R dependency (none for ANSI compilers).
  135.  
  136. AK=
  137.  
  138. # Define the compilation rules and flags.
  139.  
  140. CCC=$(CC) $(CCFLAGS) -c
  141.  
  142. # --------------------------- Generic makefile ---------------------------- #
  143.  
  144. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  145. # is generic.  tar_cat concatenates all these together.
  146. #    Copyright (C) 1990, 1991, 1993 Aladdin Enterprises.  All rights reserved.
  147. #
  148. # This file is part of Ghostscript.
  149. #
  150. # Ghostscript is distributed in the hope that it will be useful, but
  151. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  152. # to anyone for the consequences of using it or for whether it serves any
  153. # particular purpose or works at all, unless he says so in writing.  Refer
  154. # to the Ghostscript General Public License for full details.
  155. #
  156. # Everyone is granted permission to copy, modify and redistribute
  157. # Ghostscript, but only under the conditions described in the Ghostscript
  158. # General Public License.  A copy of this license is supposed to have been
  159. # given to you along with Ghostscript so you can know your rights and
  160. # responsibilities.  It should be in a file named COPYING.  Among other
  161. # things, the copyright notice and this notice must be preserved on all
  162. # copies.
  163.  
  164. # Partial makefile for Ghostscript, common to all Unix configurations.
  165.  
  166. # This part of the makefile gets inserted after the compiler-specific part
  167. # (xxx-head.mak) and before gs.mak and devs.mak.
  168.  
  169. # ----------------------------- Generic stuff ----------------------------- #
  170.  
  171. # Define the platform name.  For a "stock" System V platform,
  172. # use sysv_ instead of unix_.
  173.  
  174. PLATFORM=unix_
  175.  
  176. # Define the extensions for the object and executable files.
  177.  
  178. OBJ=o
  179. XE=
  180.  
  181. # Define the current directory prefix, shell quote string, and shell names.
  182.  
  183. EXP=./
  184. QQ=\"
  185. SHELL=/bin/sh
  186. SH=$(SHELL)
  187. SHP=$(SH) $(EXP)
  188.  
  189. # Define the compilation rules and flags.
  190.  
  191. CCFLAGS=$(GENOPT) $(CFLAGS)
  192.  
  193. .c.o: $(AK)
  194.     $(CCC) $*.c
  195.  
  196. CCCF=$(CCC)
  197. CCD=$(CCC)
  198. CCINT=$(CCC)
  199. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  200. #
  201. # This file is part of Ghostscript.
  202. #
  203. # Ghostscript is distributed in the hope that it will be useful, but
  204. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  205. # to anyone for the consequences of using it or for whether it serves any
  206. # particular purpose or works at all, unless he says so in writing.  Refer
  207. # to the Ghostscript General Public License for full details.
  208. #
  209. # Everyone is granted permission to copy, modify and redistribute
  210. # Ghostscript, but only under the conditions described in the Ghostscript
  211. # General Public License.  A copy of this license is supposed to have been
  212. # given to you along with Ghostscript so you can know your rights and
  213. # responsibilities.  It should be in a file named COPYING.  Among other
  214. # things, the copyright notice and this notice must be preserved on all
  215. # copies.
  216.  
  217. # Generic makefile for Ghostscript.
  218. # The platform-specific makefiles `include' this file.
  219. # They define the following symbols:
  220. #    GS - the name of the executable (without the extension, if any).
  221. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  222. #        initialization and font files at run time.
  223. #    DEVICE_DEVS - the devices to include in the executable.
  224. #        See devs.mak for details.
  225. #    DEVICE_DEVS1...DEVICE_DEVS9 - additional devices, if the definition of
  226. #        DEVICE_DEVS doesn't fit on one line.
  227. #        See devs.mak for details.
  228. #    FEATURE_DEVS - the optional features to include in the
  229. #        executable.  Current features are:
  230. #            dps - (partial) support for Display PostScript extensions:
  231. #            see language.doc for details.
  232. #            level2 - (partial) support for PostScript Level 2
  233. #            extensions: see language.doc for details.
  234. #            compfont - support for composite (type 0) fonts.
  235. #            *** NOT IMPLEMENTED YET. ***
  236. #            filter - support for Level 2 filters (other than eexec,
  237. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  238. #            and SubFileDecode, which are always included).
  239. #            ccfonts - precompile fonts into C, and link them
  240. #            with the executable.  In the standard makefiles,
  241. #            this is only implemented for a very few fonts:
  242. #            see fonts.doc for details.
  243. # It is very unlikely that anyone would want to edit the remaining
  244. #   symbols, but we describe them here for completeness:
  245. #    GS_INIT - the name of the initialization file for Ghostscript,
  246. #        normally gs_init.ps.
  247. #    PLATFORM - a "device" name for the platform, so that platforms can
  248. #        add various kinds of resources like devices and features.
  249. #    QQ - a " preceded by whatever escape characters are needed to
  250. #        persuade the shell to pass a " to a program (" on MS-DOS,
  251. #        \" on Unix).
  252. #    XE - the extension for executable files (e.g., null or .exe).
  253. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  254. #    BEGINFILES - the list of files that `make begin' should delete.
  255. #    CCBEGIN - the compilation command for `make begin', normally
  256. #        $(CCC) *.c.
  257. #    CCC - the C invocation for normal compilation.
  258. #    CCD - the C invocation for files that store into frame buffers or
  259. #        device registers.  Needed because some optimizing compilers
  260. #        will eliminate necessary stores.
  261. #    CCCF - the C invocation for compiled fonts and other large,
  262. #        self-contained data modules.  Needed because MS-DOS
  263. #        requires using the 'huge' memory model for these.
  264. #    CCINT - the C invocation for compiling the main interpreter module,
  265. #        normally the same as CCC: this is needed because the
  266. #        Borland compiler generates *worse* code for this module
  267. #        (but only this module) when optimization (-O) is turned on.
  268. #    AK - if source files must be converted from ANSI to K&R syntax,
  269. #        this is ansi2knr$(XE); if not, it is null.
  270. #        If a particular platform requires other utility programs
  271. #        to be built, AK must include them too.
  272. #    SHP - the prefix for invoking a shell script in the current directory
  273. #        (null for MS-DOS, $(SH) ./ for Unix).
  274. #    EXPP, EXP - the prefix for invoking an executable program in the
  275. #        current directory (null for MS-DOS, ./ for Unix).
  276. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  277. # The platform-specific makefiles must also include rules for creating
  278. #   ansi2knr$(XE), genarch$(XE), and genconf$(XE) from the corresponding
  279. #   .c files -- this is needed because Turbo C and Unix C treat the -o
  280. #   switch slightly differently (Turbo C requires no following space,
  281. #   Unix C requires a following space), and I haven't found a way to capture
  282. #   the difference in a macro.
  283.  
  284. all default: SCOPTIONS $(GS)$(XE)
  285.  
  286. SCOPTIONS:
  287.     -@echo $(SCOPTIONS) > SCOPTIONS
  288.  
  289. distclean realclean: clean
  290.     rm -f makefile
  291.  
  292. clean mostlyclean:
  293.     rm -f *.$(OBJ) *.lib *.lnk scoptions gmon.out
  294.     rm -f *.dev *.d_* arch.h gconfig*.h o*.tr l*.tr
  295.     rm -f t _temp_* _temp_*.* *.map *.sym
  296.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) genconf$(XE)
  297.     rm -f $(GS)$(XE) $(BEGINFILES)
  298.  
  299. # A rule to do a quick and dirty compilation attempt when first installing
  300. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  301.  
  302. begin:
  303.     rm -f arch.h genarch$(XE) $(GS)$(XE) $(BEGINFILES)
  304.     make arch.h
  305.     - $(CCBEGIN)
  306.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  307.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ) zfiledev.$(OBJ)
  308.  
  309. # Auxiliary programs
  310.  
  311. arch.h: genarch$(XE)
  312.     $(EXPP) $(EXP)genarch arch.h
  313.  
  314. # -------------------------------- Library -------------------------------- #
  315.  
  316. # Define the inter-dependencies of the .h files.
  317. # Since not all versions of `make' defer expansion of macros,
  318. # we must list these in bottom-to-top order.
  319.  
  320. # Generic files
  321.  
  322. arch_h=arch.h
  323. std_h=std.h $(arch_h)
  324.  
  325. # Platform interfaces
  326.  
  327. gp_h=gp.h
  328. gpcheck_h=gpcheck.h
  329.  
  330. # C library interfaces
  331.  
  332. # Because of variations in the "standard" header files between systems, and
  333. # because we must include std.h before any file that includes sys/types.h,
  334. # we define local include files named *_.h to substitute for <*.h>.
  335.  
  336. vmsmath_h=vmsmath.h
  337.  
  338. dos__h=dos_.h
  339. ctype__h=ctype_.h $(std_h)
  340. errno__h=errno_.h
  341. malloc__h=malloc_.h $(std_h)
  342. math__h=math_.h $(std_h) $(vmsmath_h)
  343. memory__h=memory_.h $(std_h)
  344. stat__h=stat_.h $(std_h)
  345. stdio__h=stdio_.h $(std_h)
  346. string__h=string_.h $(std_h)
  347. time__h=time_.h $(std_h)
  348. windows__h=windows_.h
  349.  
  350. # Miscellaneous
  351.  
  352. gdebug_h=gdebug.h
  353. gsio_h=gsio.h
  354. gstypes_h=gstypes.h
  355. gs_h=gs.h $(stdio__h) $(gsio_h) $(gstypes_h)
  356. gx_h=gx.h $(gs_h) $(gdebug_h)
  357. gconfig_h=gconfig.h gsconfig.h
  358. gserrors_h=gserrors.h
  359.  
  360. GX=$(AK) $(gx_h)
  361. GXERR=$(GX) $(gserrors_h)
  362.  
  363. ###### Low-level facilities and utilities
  364.  
  365. ### Include files
  366.  
  367. gsccode_h=gsccode.h
  368. gschar_h=gschar.h $(gsccode_h)
  369. gscie_h=gscie.h
  370. gscolor_h=gscolor.h
  371. gscolor2_h=gscolor2.h
  372. gscoord_h=gscoord.h
  373. gscrypt1_h=gscrypt1.h
  374. gscspace_h=gscspace.h
  375. gsfont_h=gsfont.h
  376. gsimage_h=gsimage.h
  377. gsmatrix_h=gsmatrix.h
  378. gspaint_h=gspaint.h
  379. gspath_h=gspath.h
  380. gsprops_h=gsprops.h
  381. gsstate_h=gsstate.h $(gscolor_h)
  382. gstype1_h=gstype1.h
  383. gsuid_h=gsuid.h
  384. gsutil_h=gsutil.h
  385. gsxfont_h=gsxfont.h
  386.  
  387. gxarith_h=gxarith.h
  388. gxbitmap_h=gxbitmap.h
  389. gxcache_h=gxcache.h $(gsuid_h) $(gsxfont_h)
  390. gxcdir_h=gxcdir.h
  391. gxchar_h=gxchar.h $(gschar_h)
  392. gxclist_h=gxclist.h
  393. # gxcldev is out of order because it include gxclist.
  394. gxcldev_h=gxcldev.h $(gxclist_h)
  395. gxcpath_h=gxcpath.h
  396. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gsxfont_h) $(gxbitmap_h)
  397. gxdevmem_h=gxdevmem.h
  398. gxfdir_h=gxfdir.h $(gxcdir_h)
  399. gxfixed_h=gxfixed.h
  400. gxfont_h=gxfont.h $(gsfont_h) $(gsuid_h)
  401. gxfrac_h=gxfrac.h
  402. gximage_h=gximage.h $(gscspace_h) $(gsimage_h)
  403. gxlum_h=gxlum.h
  404. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  405. gxop1_h=gxop1.h
  406. gxpath_h=gxpath.h
  407. gxrefct_h=gxrefct.h
  408. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  409. gxxfont_h=gxxfont.h $(gsccode_h) $(gsmatrix_h) $(gsuid_h) $(gsxfont_h)
  410. # gxcolor and gxfmap are out of order because they include other files.
  411. gxcolor_h=gxcolor.h $(gxfrac_h) $(gsuid_h)
  412. gxfmap_h=gxfmap.h $(gxfrac_h) $(gxrefct_h)
  413.  
  414. gzcolor_h=gzcolor.h $(gscolor_h) $(gxfmap_h) $(gxlum_h)
  415. gzdevice_h=gzdevice.h $(gxdevice_h)
  416. gzht_h=gzht.h
  417. gzline_h=gzline.h
  418. gzpath_h=gzpath.h $(gxpath_h)
  419. gzstate_h=gzstate.h $(gsstate_h) $(gxfixed_h) $(gxmatrix_h)
  420.  
  421. ### Executable code
  422.  
  423. gp_nofb.$(OBJ): gp_nofb.c $(AK) \
  424.   $(gx_h) $(gp_h) $(gxdevice_h)
  425.  
  426. gsutil.$(OBJ): gsutil.c $(AK) \
  427.   $(std_h) $(gsprops_h) $(gsutil_h)
  428.  
  429. gxccache.$(OBJ): gxccache.c $(GXERR) $(gpcheck_h) \
  430.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  431.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  432.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h) \
  433.   $(gscspace_h) $(gsimage_h)
  434.  
  435. gxccman.$(OBJ): gxccman.c $(GXERR) $(gpcheck_h) \
  436.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  437.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  438.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h)
  439.  
  440. gxclist.$(OBJ): gxclist.c $(GXERR) $(gpcheck_h) \
  441.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  442.  
  443. gxclread.$(OBJ): gxclread.c $(GXERR) $(gpcheck_h) \
  444.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  445.  
  446. gxcmap.$(OBJ): gxcmap.c $(GXERR) \
  447.   $(gscspace_h) \
  448.   $(gxcolor_h) $(gxdevice_h) $(gxfrac_h) $(gxlum_h) \
  449.   $(gzcolor_h) $(gzstate_h)
  450.  
  451. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  452.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  453.  
  454. gxdither.$(OBJ): gxdither.c $(GX) \
  455.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  456.  
  457. gxdraw.$(OBJ): gxdraw.c $(GXERR) $(gpcheck_h) \
  458.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  459.  
  460. gxfill.$(OBJ): gxfill.c $(GXERR) \
  461.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  462.  
  463. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  464.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) \
  465.   $(gzdevice_h) $(gzstate_h)
  466.  
  467. gxhint2.$(OBJ): gxhint2.c $(GXERR) \
  468.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) $(gxop1_h) \
  469.   $(gzdevice_h) $(gzstate_h)
  470.  
  471. gxht.$(OBJ): gxht.c $(GXERR) \
  472.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  473.  
  474. gxpath.$(OBJ): gxpath.c $(GXERR) \
  475.   $(gxfixed_h) $(gzpath_h)
  476.  
  477. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  478.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  479.  
  480. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  481.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  482.  
  483. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  484.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  485.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  486.  
  487. ###### High-level facilities
  488.  
  489. gschar.$(OBJ): gschar.c $(GXERR) \
  490.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gxcache_h) $(gstype1_h) $(gspath_h) $(gzpath_h) $(gzcolor_h) $(gzstate_h)
  491.  
  492. gscolor.$(OBJ): gscolor.c $(GXERR) \
  493.   $(gscspace_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  494.   $(gzstate_h) $(gzcolor_h)
  495.  
  496. gscoord.$(OBJ): gscoord.c $(GXERR) \
  497.   $(gsccode_h) $(gxarith_h) $(gxfixed_h) $(gxfont_h) $(gxmatrix_h) \
  498.   $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  499.  
  500. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  501.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxbitmap_h) $(gxdevmem_h) \
  502.   $(gzstate_h) $(gzdevice_h)
  503.  
  504. gsfile.$(OBJ): gsfile.c $(GXERR) \
  505.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  506.  
  507. gsfont.$(OBJ): gsfont.c $(GXERR) \
  508.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  509.   $(gzstate_h)
  510.  
  511. gsht.$(OBJ): gsht.c $(GXERR) \
  512.   $(gzht_h) $(gzstate_h)
  513.  
  514. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  515.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  516.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  517.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  518.  
  519. gsimage1.$(OBJ): gsimage1.c $(GXERR) $(gpcheck_h) \
  520.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  521.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  522.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  523.  
  524. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  525.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  526.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  527.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  528.  
  529. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  530.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  531.  
  532. gsline.$(OBJ): gsline.c $(GXERR) \
  533.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  534.  
  535. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  536.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  537.  
  538. gsmisc.$(OBJ): gsmisc.c $(GX) $(errno__h) $(malloc__h) $(memory__h) $(MAKEFILE)
  539.     $(CCC) $(XINCLUDE) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  540.  
  541. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  542.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  543.  
  544. gspath.$(OBJ): gspath.c $(GXERR) \
  545.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  546.  
  547. gspath2.$(OBJ): gspath2.c $(GXERR) \
  548.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  549.  
  550. gsstate.$(OBJ): gsstate.c $(GXERR) \
  551.   $(gscie_h) $(gscolor2_h) $(gscspace_h) $(gxcolor_h) $(gxrefct_h) \
  552.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  553.  
  554. gstdev.$(OBJ): gstdev.c $(GXERR) \
  555.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  556.  
  557. gstype1.$(OBJ): gstype1.c $(GXERR) \
  558.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  559.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  560.  
  561. ###### The internal devices
  562.  
  563. gdevmem_h=gdevmem.h
  564.  
  565. gdevemap.$(OBJ): gdevemap.c $(AK) $(std_h)
  566.  
  567. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  568.   $(gx_h) $(gserrors_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  569.  
  570. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  571.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  572.  
  573. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  574.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  575.  
  576. ###### Files dependent on the installed devices, features, and platform.
  577. # Generating gconfig.h also generates o*.tr and l*.tr.
  578.  
  579. # gconfig.h shouldn't have to depend on ALL_DEVS, but that would
  580. # involve rewriting gsconfig to only save the device name, not the
  581. # contents of the <device>.D_# files.
  582.  
  583. ALL_DEVS=$(FEATURE_DEVS) $(PLATFORM).dev \
  584.   $(DEVICE_DEVS) $(DEVICE_DEVS1) \
  585.   $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5)\
  586.   $(DEVICE_DEVS6) $(DEVICE_DEVS7) $(DEVICE_DEVS8) $(DEVICE_DEVS9)
  587.  
  588. gconfig.h obj.tr objw.tr ld.tr lib.tr: \
  589.   devs.mak $(MAKEFILE) echogs$(XE) genconf$(XE) $(ALL_DEVS)
  590.     $(EXP)echogs -w t.cfg - $(FEATURE_DEVS) $(PLATFORM).dev
  591.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS)
  592.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS1)
  593.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS2)
  594.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS3)
  595.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS4)
  596.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS5)
  597.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS6)
  598.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS7)
  599.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS8)
  600.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS9)
  601.     $(EXP)genconf @t.cfg -h gconfig.h -l lib.tr -o obj.tr -u ld.tr -w objw.tr
  602.     rm t.cfg
  603.     $(EXP)echogs -a gconfig.h -x 23 define GS_LIB_DEFAULT -x 2022 $(GS_LIB_DEFAULT) -x 22
  604.     $(EXP)echogs -a gconfig.h -x 23 define GS_INIT -x 2022 $(GS_INIT) -x 22
  605.  
  606. gconfig.$(OBJ): gconfig.c $(AK) $(gconfig_h) $(MAKEFILE)
  607.  
  608. ###### On Unix, we pre-link all of the library except the back end.
  609. ###### On MS-DOS, we have to do the whole thing at once.
  610.  
  611. LIBGS=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  612.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsht.$(OBJ) \
  613.  gsimage.$(OBJ) gsimage1.$(OBJ) gsimage2.$(OBJ) \
  614.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  615.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  616.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  617.  gxccache.$(OBJ) gxccman.$(OBJ) gxclist.$(OBJ) gxclread.$(OBJ) \
  618.  gxcmap.$(OBJ) gxcpath.$(OBJ) \
  619.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) \
  620.  gxhint1.$(OBJ) gxhint2.$(OBJ) gxht.$(OBJ) \
  621.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  622.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  623.  
  624. # ------------------------------ Interpreter ------------------------------ #
  625.  
  626. ###### Include files
  627.  
  628. alloc_h=alloc.h
  629. astate_h=astate.h
  630. ccfont_h=ccfont.h
  631. dict_h=dict.h
  632. dparam_h=dparam.h
  633. dstack_h=dstack.h
  634. errors_h=errors.h
  635. estack_h=estack.h
  636. filedev_h=filedev.h
  637. files_h=files.h
  638. font_h=font.h
  639. ilevel_h=ilevel.h
  640. iname_h=iname.h
  641. iref_h=iref.h
  642. iscan_h=iscan.h
  643. ivmspace_h=ivmspace.h
  644. iutil_h=iutil.h
  645. main_h=main.h
  646. opdef_h=opdef.h
  647. ostack_h=ostack.h
  648. overlay_h=overlay.h
  649. packed_h=packed.h
  650. save_h=save.h
  651. scanchar_h=scanchar.h
  652. sbits_h=sbits.h
  653. shc_h=shc.h
  654. state_h=state.h
  655. store_h=store.h
  656. stream_h=stream.h
  657. # Nested include files
  658. bfont_h=bfont.h $(font_h)
  659. ghost_h=ghost.h $(gx_h) $(iref_h)
  660. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  661. scf_h=scf.h $(shc_h)
  662. sdct_h=sdct.h $(shc_h)
  663. # Include files for optional features
  664. bnum_h=bnum.h
  665. bseq_h=bseq.h
  666. btoken_h=btoken.h
  667.  
  668. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  669.  
  670. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  671.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  672.  
  673. ###### Utilities
  674.  
  675. GH=$(AK) $(ghost_h)
  676.  
  677. ialloc.$(OBJ): ialloc.c $(AK) $(gx_h) $(alloc_h) $(astate_h) $(ivmspace_h)
  678.  
  679. iccfont.$(OBJ): iccfont.c $(GH) gconfigf.h \
  680.   $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) \
  681.   $(font_h) $(iutil_h) $(iname_h) $(oper_h) $(save_h) $(store_h)
  682.  
  683. idebug.$(OBJ): idebug.c $(GH) \
  684.   $(iutil_h) $(dict_h) $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  685.  
  686. idict.$(OBJ): idict.c $(GH) \
  687.   $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(packed_h) \
  688.   $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  689.  
  690. idparam.$(OBJ): idparam.c $(GH) \
  691.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  692.  
  693. iinit.$(OBJ): iinit.c $(GH) $(gconfig_h) \
  694.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(ilevel_h) $(iname_h) $(oper_h) $(store_h)
  695.  
  696. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(store_h)
  697.  
  698. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(errors_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  699.  
  700. iscan.$(OBJ): iscan.c $(GH) $(ctype__h) \
  701.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) \
  702.   $(ilevel_h) $(iutil_h) $(iscan_h) $(ivmspace_h) \
  703.   $(iname_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  704.  
  705. iutil.$(OBJ): iutil.c $(GH) \
  706.   $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(ivmspace_h) \
  707.   $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  708.   $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  709.  
  710. sfilter.$(OBJ): sfilter.c $(AK) $(stdio__h) \
  711.   $(scanchar_h) $(stream_h) $(gscrypt1_h)
  712.  
  713. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(memory__h) \
  714.   $(gpcheck_h) $(scanchar_h) $(stream_h)
  715.  
  716. ###### Operators
  717.  
  718. OP=$(GH) $(errors_h) $(oper_h)
  719.  
  720. ### Non-graphics operators
  721.  
  722. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  723.  
  724. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  725.  
  726. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  727.  
  728. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(iname_h) $(store_h)
  729.  
  730. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  731.   $(alloc_h) $(estack_h) $(filedev_h) $(files_h) $(ilevel_h) $(iutil_h) \
  732.   $(save_h) $(stream_h) $(store_h)
  733.  
  734. zfiledev.$(OBJ): zfiledev.c $(OP) $(string__h) $(gp_h) $(gconfig_h) \
  735.   $(filedev_h) $(files_h) $(stream_h)
  736.  
  737. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  738.   $(estack_h) $(files_h) $(iscan_h) $(store_h) $(stream_h) \
  739.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  740.  
  741. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  742.  
  743. zgeneric.$(OBJ): zgeneric.c $(OP) \
  744.   $(dict_h) $(estack_h) $(ivmspace_h) $(iname_h) $(packed_h) $(store_h)
  745.  
  746. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  747.  
  748. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) $(errno__h) $(memory__h) $(string__h) \
  749.   $(alloc_h) $(dict_h) $(dstack_h) $(iname_h) $(ivmspace_h) $(packed_h) $(store_h) \
  750.   $(gscrypt1_h)
  751.  
  752. zpacked.$(OBJ): zpacked.c $(OP) \
  753.   $(alloc_h) $(dict_h) $(ivmspace_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  754.  
  755. zprops.$(OBJ): zprops.c $(OP) \
  756.   $(alloc_h) $(dict_h) $(iname_h) $(state_h) $(store_h) \
  757.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h) $(gsstate_h)
  758.  
  759. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  760.  
  761. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  762.  
  763. zstring.$(OBJ): zstring.c $(OP) \
  764.   $(alloc_h) $(iscan_h) $(iutil_h) $(iname_h) $(store_h) $(stream_h)
  765.  
  766. ztype.$(OBJ): ztype.c $(OP) \
  767.   $(dict_h) $(iscan_h) $(iutil_h) $(iname_h) $(stream_h) $(store_h)
  768.  
  769. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  770.   $(gsmatrix_h) $(gsstate_h)
  771.  
  772. ###### Graphics operators
  773.  
  774. zchar.$(OBJ): zchar.c $(OP) $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) \
  775.   $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  776.   $(alloc_h) $(dict_h) $(font_h) $(estack_h) $(ilevel_h) $(iname_h) $(state_h) $(store_h)
  777.  
  778. zcolor.$(OBJ): zcolor.c $(OP) $(alloc_h) $(estack_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gzcolor_h) $(iutil_h) $(state_h) $(store_h)
  779.  
  780. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  781.  
  782. zfont.$(OBJ): zfont.c $(OP) \
  783.   $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) $(gxcache_h) \
  784.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  785.  
  786. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  787.   $(bfont_h) $(dict_h) $(dparam_h) $(iname_h) $(store_h)
  788.  
  789. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  790.   $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(ilevel_h) $(iname_h) \
  791.   $(packed_h) $(save_h) $(store_h)
  792.  
  793. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  794.  
  795. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  796.  
  797. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  798.  
  799. zpaint.$(OBJ): zpaint.c $(OP) \
  800.   $(alloc_h) $(estack_h) $(ilevel_h) $(state_h) $(store_h) $(stream_h) \
  801.   $(gsimage_h) $(gsmatrix_h) $(gspaint_h)
  802.  
  803. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  804.  
  805. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  806.  
  807. ###### Linking
  808.  
  809. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  810.  iinit.$(OBJ) iname.$(OBJ) \
  811.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  812.  sfilter.$(OBJ) stream.$(OBJ) \
  813.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  814.  zfile.$(OBJ) zfiledev.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  815.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  816.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  817.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  818.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  819.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  820.  
  821. # -------------------------- Optional features ---------------------------- #
  822.  
  823. ### Additions common to Display PostScript and Level 2
  824.  
  825. # We have to split up the module list because of limitations
  826. # on the number of arguments to a DOS batch file.
  827. dpsand2a_=gsdps1.$(OBJ) ibnum.$(OBJ) iscan2.$(OBJ)
  828. dpsand2b_=zbseq.$(OBJ) zchar2.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ) zvmem2.$(OBJ)
  829. dpsand2_=$(dpsand2a_) $(dpsand2b_)
  830. dpsand2.dev: $(dpsand2_)
  831.     $(SHP)gssetmod dpsand2 $(dpsand2a_)
  832.     $(SHP)gsaddmod dpsand2 -obj $(dpsand2b_)
  833.     $(SHP)gsaddmod dpsand2 -oper2 zbseq zchar2 zdps1 zupath zvmem2
  834.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  835.  
  836. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gxfixed_h) $(gxmatrix_h) $(gzpath_h) $(gzstate_h)
  837.  
  838. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  839.  
  840. iscan2.$(OBJ): iscan2.c $(GH) $(errors_h) \
  841.   $(alloc_h) $(dict_h) $(dstack_h) $(iscan_h) $(iutil_h) $(ivmspace_h) \
  842.   $(iname_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) \
  843.   $(bseq_h) $(btoken_h) $(bnum_h)
  844.  
  845. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(iname_h) $(bnum_h) $(btoken_h) $(bseq_h)
  846.  
  847. zchar2.$(OBJ): zchar2.c $(OP) $(gschar_h) $(gsmatrix_h) $(gxfixed_h) $(gxfont_h) \
  848.   $(alloc_h) $(estack_h) $(font_h) $(iname_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  849.  
  850. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  851.   $(alloc_h) $(ivmspace_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  852.  
  853. zupath.$(OBJ): zupath.c $(OP) \
  854.   $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  855.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  856.   $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  857.  
  858. zvmem2.$(OBJ): zvmem2.c $(OP) \
  859.   $(ivmspace_h) $(store_h)
  860.  
  861. ### Display PostScript
  862. # We should include zcontext, but it isn't in good enough shape yet:
  863. #    $(SHP)gsaddmod dps -oper2 zcontext
  864.  
  865. dps_=
  866. dps.dev: dpsand2.dev $(dps_)
  867.     $(SHP)gssetmod dps $(dps_)
  868.     $(SHP)gsaddmod dps -include dpsand2
  869.  
  870. zcontext.$(OBJ): zcontext.c $(OP) \
  871.   $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  872.  
  873. ### Composite font support
  874.  
  875. gschar0.$(OBJ): gschar0.c $(GXERR) \
  876.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  877.  
  878. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  879.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(state_h) $(store_h)
  880.  
  881. compfont_=zchar2.$(OBJ) zfont0.$(OBJ) gschar0.$(OBJ)
  882. compfont.dev: $(compfont_)
  883.     $(SHP)gssetmod compfont $(compfont_)
  884.     $(SHP)gsaddmod compfont -oper zfont0 zchar2
  885.     $(SHP)gsaddmod compfont -ps gs_type0
  886.  
  887. ### Level 2 additions
  888.  
  889. # We have to split up the module list because of limitations
  890. # on the number of arguments to a DOS batch file.
  891. level2a_=gscie.$(OBJ) gscolor2.$(OBJ) zcie.$(OBJ) zcolor2.$(OBJ)
  892. level2b_=zcspace2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ) zmisc2.$(OBJ)
  893. level2_=$(level2a_) $(level2b_)
  894. level2.dev: compfont.dev dpsand2.dev filter.dev $(level2_)
  895.     $(SHP)gssetmod level2 $(level2a_)
  896.     $(SHP)gsaddmod level2 -obj $(level2b_)
  897.     $(SHP)gsaddmod level2 -include compfont dpsand2 filter
  898.     $(SHP)gsaddmod level2 -oper zmisc2_level
  899.     $(SHP)gsaddmod level2 -oper2 zcie zcolor2 zcspace2
  900.     $(SHP)gsaddmod level2 -oper2 zht2 zimage2 zmisc2
  901.     $(SHP)gsaddmod level2 -ps gs_lev2
  902.  
  903. gscie.$(OBJ): gscie.c $(GXERR) \
  904.   $(gscspace_h) $(gscie_h) $(gscolor2_h) \
  905.   $(gxarith_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  906.   $(gzcolor_h) $(gzstate_h)
  907.  
  908. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  909.   $(gscie_h) $(gscolor2_h) $(gscspace_h) \
  910.   $(gxcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxrefct_h) \
  911.   $(gzcolor_h) $(gzstate_h)
  912.  
  913. zcie.$(OBJ): zcie.c $(OP) \
  914.   $(gscspace_h) $(gscolor2_h) $(gscie_h) $(gxcolor_h) $(gxrefct_h) \
  915.   $(alloc_h) $(dict_h) $(dparam_h) $(estack_h) $(save_h) $(state_h) $(store_h)
  916.  
  917. zcolor2.$(OBJ): zcolor2.c $(OP) \
  918.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  919.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  920.  
  921. zcspace2.$(OBJ): zcspace2.c $(OP) \
  922.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  923.   $(dict_h) $(dparam_h) $(estack_h) $(iname_h) $(state_h) $(store_h)
  924.  
  925. zht2.$(OBJ): zht2.c $(OP) \
  926.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  927.  
  928. zimage2.$(OBJ): zimage2.c $(OP) \
  929.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) $(gxcolor_h) \
  930.   $(dict_h) $(dparam_h) $(ilevel_h) $(state_h)
  931.  
  932. zmisc2.$(OBJ): zmisc2.c $(OP) \
  933.   $(gsfont_h) \
  934.   $(dict_h) $(dparam_h) $(dstack_h) $(estack_h) $(ilevel_h) $(iname_h) $(store_h)
  935.  
  936. ### Filters other than the ones in sfilter.c
  937.  
  938. sbits.$(OBJ): sbits.c $(AK) $(stdio__h) $(sbits_h) $(stream_h)
  939.  
  940. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  941.  
  942. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  943.  
  944. scfd.$(OBJ): scfd.c $(AK) $(stdio__h) $(gdebug_h)\
  945.   $(sbits_h) $(scf_h) $(stream_h)
  946.  
  947. scfe.$(OBJ): scfe.c $(AK) $(stdio__h) $(gdebug_h)\
  948.   $(sbits_h) $(scf_h) $(stream_h)
  949.  
  950. sdctd.$(OBJ): sdctd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  951.  
  952. sdcte.$(OBJ): sdcte.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  953.  
  954. sfilter2.$(OBJ): sfilter2.c $(AK) $(stdio__h) $(scanchar_h) $(stream_h)
  955.  
  956. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  957.  
  958. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  959.  
  960. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(sdct_h) $(stream_h)
  961.  
  962. # Because of size limits on the DOS command line,
  963. # we have to break this up into two parts.
  964. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ) sbits.$(OBJ)
  965. filter_2=scfdtab.$(OBJ) scftab.$(OBJ) scfd.$(OBJ) scfe.$(OBJ) 
  966. filter_3=sdctd.$(OBJ) sdcte.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  967. filter.dev: $(filter_1) $(filter_2) $(filter_3)
  968.     $(SHP)gssetmod filter $(filter_1)
  969.     $(SHP)gsaddmod filter -obj $(filter_2)
  970.     $(SHP)gsaddmod filter -obj $(filter_3)
  971.     $(SHP)gsaddmod filter -oper zfilter2
  972.  
  973. ### Precompiled fonts.  See fonts.doc for more information.
  974.  
  975. CCFONT=$(OP) $(ccfont_h)
  976.  
  977. # List the fonts we are going to compile.
  978. # Because of intrinsic limitations in `make', we have to list
  979. # the object file names and the font names separately.
  980. ccfonts1_=uglyr.$(OBJ)
  981. ccfonts1=uglyr
  982.  
  983. ccfonts.dev: $(MAKEFILE) gs.mak iccfont.$(OBJ) \
  984.   $(ccfonts1_) $(ccfonts2_) $(ccfonts3_) $(ccfonts4_) $(ccfonts5_)
  985.     $(SHP)gssetmod ccfonts iccfont.$(OBJ)
  986.     $(SHP)gsaddmod ccfonts -obj $(ccfonts1_)
  987.     $(SHP)gsaddmod ccfonts -obj $(ccfonts2_)
  988.     $(SHP)gsaddmod ccfonts -obj $(ccfonts3_)
  989.     $(SHP)gsaddmod ccfonts -obj $(ccfonts4_)
  990.     $(SHP)gsaddmod ccfonts -obj $(ccfonts5_)
  991.     $(SHP)gsaddmod ccfonts -oper ccfonts
  992.  
  993. gconfigf.h: $(MAKEFILE) gs.mak genconf$(XE)
  994.     $(SHP)gssetmod ccfonts_
  995.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts1)
  996.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts2)
  997.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts3)
  998.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts4)
  999.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts5)
  1000.     $(EXP)genconf ccfonts_.dev -f gconfigf.h
  1001.  
  1002. uglyr.$(OBJ): uglyr.c $(CCFONT)
  1003.     $(CCCF) uglyr.c
  1004.  
  1005. ncrr.$(OBJ): ncrr.c $(CCFONT)
  1006.     $(CCCF) ncrr.c
  1007.  
  1008. pagk.$(OBJ): pagk.c $(CCFONT)
  1009.     $(CCCF) pagk.c
  1010.  
  1011. psyr.$(OBJ): psyr.c $(CCFONT)
  1012.     $(CCCF) psyr.c
  1013.  
  1014. ptmr.$(OBJ): ptmr.c $(CCFONT)
  1015.     $(CCCF) ptmr.c
  1016.  
  1017. pzdr.$(OBJ): pzdr.c $(CCFONT)
  1018.     $(CCCF) pzdr.c
  1019.  
  1020. # ----------------------------- Main program ------------------------------ #
  1021.  
  1022. # Interpreter main program
  1023.  
  1024. gs.$(OBJ): gs.c $(GH) $(ctype__h) \
  1025.   $(gxdevice_h) $(gxdevmem_h) \
  1026.   $(alloc_h) $(errors_h) $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  1027.  
  1028. gsmain.$(OBJ): gsmain.c $(GH) \
  1029.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  1030.   $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h)
  1031.  
  1032. interp.$(OBJ): interp.c $(GH) \
  1033.   $(errors_h) $(estack_h) $(iname_h) $(dict_h) $(dstack_h) $(iscan_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  1034.     $(CCINT) interp.c
  1035. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1036. #
  1037. # This file is part of Ghostscript.
  1038. #
  1039. # Ghostscript is distributed in the hope that it will be useful, but
  1040. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1041. # to anyone for the consequences of using it or for whether it serves any
  1042. # particular purpose or works at all, unless he says so in writing.  Refer
  1043. # to the Ghostscript General Public License for full details.
  1044. #
  1045. # Everyone is granted permission to copy, modify and redistribute
  1046. # Ghostscript, but only under the conditions described in the Ghostscript
  1047. # General Public License.  A copy of this license is supposed to have been
  1048. # given to you along with Ghostscript so you can know your rights and
  1049. # responsibilities.  It should be in a file named COPYING.  Among other
  1050. # things, the copyright notice and this notice must be preserved on all
  1051. # copies.
  1052.  
  1053. # makefile for Ghostscript device drivers.
  1054.  
  1055. # -------------------------------- Catalog ------------------------------- #
  1056.  
  1057. # It is possible to build Ghostscript with an arbitrary collection of
  1058. # device drivers, although some drivers are supported only on a subset
  1059. # of the target platforms.  The currently available drivers are:
  1060.  
  1061. # Displays:
  1062. #   MS-DOS EGA and VGA:
  1063. #    ega    EGA (640x350, 16-color)
  1064. #    vga    VGA (640x480, 16-color)
  1065. #   MS-DOS SuperVGA:
  1066. # +    atiw    ATI Wonder SuperVGA, 256-color modes
  1067. # +     atiw16  ATI Wonder SuperVGA in 800x600, 16-color mode
  1068. #    s3vga    SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  1069. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  1070. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  1071. # +    tvga    Trident SuperVGA, 256-color modes
  1072. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  1073. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  1074. #   ****** compiler or executable.
  1075. #    vesa    SuperVGA with VESA standard API driver
  1076. #   MS-DOS other:
  1077. #    bgi    Borland Graphics Interface (CGA)  [MS-DOS only]
  1078. # *    herc    Hercules Graphics display   [MS-DOS only]
  1079. #    mswin    Microsoft Windows 3.0, 3.1  [MS Windows only]
  1080. #    mswinprn  Microsoft Windows 3.0, 3.1 printer  [MS Windows only]
  1081. # *    pe    Private Eye display
  1082. #   Unix and VMS:
  1083. #   ****** NOTE: For direct frame buffer addressing under SCO Unix or Xenix,
  1084. #   ****** edit the definition of EGAVGA below.
  1085. # *    att3b1    AT&T 3b1/Unixpc monochrome display   [3b1 only]
  1086. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  1087. # *    sunview  SunView window system   [SunOS only]
  1088. #    x11    X Windows version 11, release >=4   [Unix and VMS only]
  1089. # Printers:
  1090. # *    appledmp  Apple Dot Matrix Printer (should also work with Imagewriter)
  1091. #    bj10e    Canon BubbleJet BJ10e
  1092. # *    bj200    Canon BubbleJet BJ200
  1093. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  1094. # *    cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and
  1095. #        high-quality color (Floyd-Steinberg) dithering
  1096. # *    cdjmono  H-P DeskJet 500C printing black only
  1097. # *    cdj500    H-P DeskJet 500C (same as cdjcolor)
  1098. # *    cdj550    H-P DeskJet 550C
  1099. # *    declj250  alternate DEC LJ250 driver
  1100. # +    deskjet  H-P DeskJet and DeskJet Plus
  1101. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  1102. # *    dfaxlow  DigiFAX low (normal) resolution
  1103. #    djet500  H-P DeskJet 500
  1104. # *    djet500c  H-P DeskJet 500C
  1105. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  1106. # +    eps9high  Epson-compatible 9-pin, interleaved lines
  1107. #        (triple resolution)
  1108. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  1109. # *    escp2    Epson ESC/P 2 language printers, including Stylus 800
  1110. # +     ibmpro  IBM 9-pin Proprinter
  1111. # *    jetp3852  IBM Jetprinter ink-jet color printer (Model #3852)
  1112. # +    laserjet  H-P LaserJet
  1113. # *    la50    DEC LA50 printer
  1114. # *    la75    DEC LA75 printer
  1115. # *    lbp8    Canon LBP-8II laser printer
  1116. # *    ln03    DEC LN03 printer
  1117. # *    lj250    DEC LJ250 Companion color printer
  1118. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  1119. # +    ljet3    H-P LaserJet III* with Delta Row compression
  1120. # +    ljet4    H-P LaserJet 4 (defaults to 600 dpi)
  1121. # +    ljetplus  H-P LaserJet Plus
  1122. # *    m8510    C.Itoh M8510 printer
  1123. # *    necp6    NEC P6/P6+/P60 printers at 360 x 360 DPI resolution
  1124. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  1125. # *    oki182    Okidata MicroLine 182
  1126. #    paintjet  H-P PaintJet color printer
  1127. # *    pj    alternate PaintJet XL driver 
  1128. # *    pjxl    H-P PaintJet XL color printer
  1129. # *    pjxl300  H-P PaintJet XL300 color printer
  1130. # *    r4081    Ricoh 4081 laser printer
  1131. # *    sparc    SPARCprinter
  1132. # *    t4693d2  Tektronix 4693d color printer, 2 bits per R/G/B component
  1133. # *    t4693d4  Tektronix 4693d color printer, 4 bits per R/G/B component
  1134. # *    t4693d8  Tektronix 4693d color printer, 8 bits per R/G/B component
  1135. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  1136. # *    trufax    TruFax facsimile driver  [Unix only]
  1137. # File formats and others:
  1138. #    bit    A plain "bit bucket" device
  1139. #    bmpmono    Monochrome MS Windows .BMP file format
  1140. #    bmp16    4-bit (EGA/VGA) .BMP file format
  1141. #    bmp256    8-bit (256-color) .BMP file format
  1142. #    bmp16m    24-bit .BMP file format
  1143. #    gifmono    Monochrome GIF file format
  1144. #    gif8    8-bit color GIF file format
  1145. #    pcxgray    8-bit gray scale PCX file format
  1146. #    pcxmono    Monochrome PCX file format
  1147. #    pcx16    Older color PCX file format (EGA/VGA, 16-color)
  1148. #    pcx256    Newer color PCX file format (256-color)
  1149. #    pbm    Portable Bitmap (plain format)
  1150. #    pbmraw    Portable Bitmap (raw format)
  1151. #    pgm    Portable Graymap (plain format)
  1152. #    pgmraw    Portable Graymap (raw format)
  1153. #    ppm    Portable Pixmap (plain format)
  1154. #    ppmraw    Portable Pixmap (raw format)
  1155. # *    tiffg3    TIFF/F (G3 fax)
  1156.  
  1157. # User-contributed drivers marked with * require hardware or software
  1158. # that is not available to Aladdin Enterprises.  Please contact the
  1159. # original contributors, not Aladdin Enterprises, if you have questions.
  1160. # Contact information appears in the driver entry below.
  1161. #
  1162. # Drivers marked with a + are maintained by Aladdin Enterprises with
  1163. # the assistance of users, since Aladdin Enterprises doesn't have access to
  1164. # the hardware for these either.
  1165.  
  1166. # If you add drivers, it would be nice if you kept each list
  1167. # in alphabetical order.
  1168.  
  1169. # Each platform-specific makefile contains a line of the form
  1170. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  1171. # where dev1 ... devn are the devices to be included in the build.
  1172. # You may edit this line to select any desired set of devices.
  1173. # dev1 will be used as the default device (unless overridden from
  1174. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  1175. # devices on a single line, you may add lines defining
  1176. #    DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  1177. #    DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  1178. # etc. up to DEVICE_DEVS9.
  1179. # Don't use continuation lines, since this may break the MS-DOS command
  1180. # processor.
  1181.  
  1182. # ---------------------------- End of catalog ---------------------------- #
  1183.  
  1184. # If you want to add a new device driver, the examples below should be
  1185. # enough of a guide to the correct form for the makefile rules.
  1186.  
  1187. # All device drivers depend on the following:
  1188. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  1189.  
  1190. # Define the header files for device drivers.  Every header file used by
  1191. # more than one device driver must be listed here.
  1192. gdevpccm_h=gdevpccm.h
  1193. gdevpcfb_h=gdevpcfb.h $(dos__h)
  1194. gdevpcl_h=gdevpcl.h
  1195. gdevsvga_h=gdevsvga.h
  1196. gdevx_h=gdevx.h
  1197.  
  1198. ###### ------------------- MS-DOS display devices ------------------- ######
  1199.  
  1200. # There are really only three drivers: an EGA/VGA driver (4 bit-planes,
  1201. # plane-addressed), a SuperVGA driver (8 bit-planes, byte addressed),
  1202. # and a special driver for the S3 chip.
  1203. # To make A4 paper the default, change the compilation line from
  1204. #    $(CCD) ...
  1205. # to
  1206. #    $(CCD) -DA4
  1207.  
  1208. ### ----------------------- EGA and VGA displays ----------------------- ###
  1209.  
  1210. gdevegaa.$(OBJ): gdevegaa.asm
  1211.  
  1212. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1213. ega.exe: $(ETEST) libc$(MM).tr
  1214.     $(COMPDIR)\tlink $(LCT) $(LO) $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1215.  
  1216. ega.$(OBJ): ega.c $(GDEV)
  1217.     $(CCC) -v ega.c
  1218.  
  1219. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1220. # or an empty string.
  1221.  
  1222. # NOTE: for direct frame buffer addressing under SCO Unix or Xenix,
  1223. # change gdevevga to gdevsco in the following line.
  1224. EGAVGA=gdevevga.$(OBJ) gdevpcfb.$(OBJ) $(PCFBASM)
  1225.  
  1226. gdevevga.$(OBJ): gdevevga.c $(GDEV) $(gdevpcfb_h)
  1227.     $(CCD) gdevevga.c
  1228.  
  1229. gdevsco.$(OBJ): gdevsco.c $(GDEV) $(gdevpcfb_h)
  1230.     $(CCD) gdevsco.c
  1231.  
  1232. # Common code for MS-DOS and SCO.
  1233. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h)
  1234.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1235.  
  1236. # The EGA/VGA family includes: EGA, VGA, and
  1237. # the ATI Wonder, Tseng ET3000/4000, and Trident SuperVGA in 16-color mode.
  1238.  
  1239. ega.dev: $(EGAVGA)
  1240.     $(SHP)gssetdev ega $(EGAVGA)
  1241.  
  1242. vga.dev: $(EGAVGA)
  1243.     $(SHP)gssetdev vga $(EGAVGA)
  1244.  
  1245. atiw16.dev: $(EGAVGA)
  1246.     $(SHP)gssetdev atiw16 $(EGAVGA)
  1247.  
  1248. tseng16.dev: $(EGAVGA)
  1249.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1250.  
  1251. tvga16.dev: $(EGAVGA)
  1252.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1253.  
  1254. ### ------------------------- SuperVGA displays ------------------------ ###
  1255.  
  1256. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1257.  
  1258. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) \
  1259.   $(gdevpcfb_h) $(gdevsvga_h)
  1260.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1261.  
  1262. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1263. # and VESA.
  1264.  
  1265. atiw.dev: $(SVGA)
  1266.     $(SHP)gssetdev atiw $(SVGA)
  1267.  
  1268. tseng.dev: $(SVGA)
  1269.     $(SHP)gssetdev tseng $(SVGA)
  1270.  
  1271. tvga.dev: $(SVGA)
  1272.     $(SHP)gssetdev tvga $(SVGA)
  1273.  
  1274. vesa.dev: $(SVGA)
  1275.     $(SHP)gssetdev vesa $(SVGA)
  1276.  
  1277. # The S3 driver doesn't share much code with the others.
  1278.  
  1279. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1280. s3vga.dev: $(s3vga_)
  1281.     $(SHP)gssetdev s3vga $(s3vga_)
  1282.  
  1283. gdevs3ga.$(OBJ): gdevs3ga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1284.     $(CCD) gdevs3ga.c
  1285.  
  1286. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1287.  
  1288. cgaf.$(OBJ): $(BGIDIR)\cga.bgi
  1289.     $(BGIDIR)\bgiobj /F $(BGIDIR)\cga
  1290.  
  1291. egavgaf.$(OBJ): $(BGIDIR)\egavga.bgi
  1292.     $(BGIDIR)\bgiobj /F $(BGIDIR)\egavga
  1293.  
  1294. # Include egavgaf.$(OBJ) for debugging only.
  1295. bgi_=gdevbgi.$(OBJ) cgaf.$(OBJ)
  1296. bgi.dev: $(bgi_)
  1297.     $(SHP)gssetdev bgi $(bgi_)
  1298.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1299.  
  1300. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE) $(gxxfont_h)
  1301.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIRSTR)$(QQ) gdevbgi.c
  1302.  
  1303. ### ------------------- The Hercules Graphics display ------------------- ###
  1304.  
  1305. herc_=gdevherc.$(OBJ)
  1306. herc.dev: $(herc_)
  1307.     $(SHP)gssetdev herc $(herc_)
  1308.  
  1309. gdevherc.$(OBJ): gdevherc.c $(GDEV)
  1310.     $(CCC) gdevherc.c
  1311.  
  1312. ###### ------------------- The Private Eye display ------------------- ######
  1313. ### Note: this driver was contributed by a user:                          ###
  1314. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1315.  
  1316. pe_=gdevpe.$(OBJ)
  1317. pe.dev: $(pe_)
  1318.     $(SHP)gssetdev pe $(pe_)
  1319.  
  1320. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1321.  
  1322. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1323.  
  1324. gdevmswn_h=gdevmswn.h $(GDEV) gp_mswin.h
  1325.  
  1326. # Choose one of gdevwddb or gdevwdib here.
  1327. mswin_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \
  1328.   gdevemap.$(OBJ) gdevpccm.$(OBJ)
  1329. mswin.dev: $(mswin_)
  1330.     $(SHP)gssetdev mswin $(mswin_)
  1331.  
  1332. gdevmswn.$(OBJ): gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1333.   $(gsprops_h) $(gdevpccm_h)
  1334.  
  1335. gdevmsxf.$(OBJ): gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) \
  1336.   $(gdevmswn_h) $(gsutil_h) $(gxxfont_h)
  1337.  
  1338. # An implementation using a device-dependent bitmap.
  1339. gdevwddb.$(OBJ): gdevwddb.c $(gdevmswn_h)
  1340.  
  1341. # An implementation using a DIB filled by an image device.
  1342. gdevwdib.$(OBJ): gdevwdib.c $(dos__h) $(gdevmswn_h)
  1343.  
  1344. ###### ----------------- The MS-Windows 3.n printer ------------------ ######
  1345.  
  1346. mswinprn_=gdevwprn.$(OBJ) gdevmsxf.$(OBJ)
  1347. mswinprn.dev: $(mswinprn_)
  1348.     $(SHP)gssetdev mswinprn $(mswinprn_)
  1349.  
  1350. gdevwprn.$(OBJ): gdevwprn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1351.   $(gsprops_h) $(gdevpccm_h)
  1352.  
  1353. ###### ----------- The AT&T 3b1 Unixpc monochrome display ------------ ######
  1354. ### Note: this driver was contributed by a user: please contact           ###
  1355. ###       Andy Fyfe (andy@cs.caltech.edu) if you have questions.          ###
  1356.  
  1357. att3b1_=gdev3b1.$(OBJ)
  1358. att3b1.dev: $(att3b1_)
  1359.     $(SHP)gssetdev att3b1 $(att3b1_)
  1360.  
  1361. gdev3b1.$(OBJ): gdev3b1.c
  1362.  
  1363. ###### --------------- Memory-buffered printer devices --------------- ######
  1364.  
  1365. # The dependency list for printers includes devs.mak because
  1366. # you can specify -DA4 to make A4 paper the default.
  1367. # See below under, e.g., gdevdjet.c.
  1368. PDEVH=$(GDEV) $(gdevprn_h) devs.mak
  1369.  
  1370. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1371.  
  1372. ### ------------------- The Apple DMP printer device ------------------- ###
  1373.  
  1374. appledmp_=gdevadmp.$(OBJ) gdevprn.$(OBJ)
  1375.  
  1376. appledmp.dev: $(appledmp_)
  1377.     $(SHP)gssetdev appledmp $(appledmp_)
  1378.  
  1379. ### ------------ The Canon BubbleJet BJ10e and BJ200 devices ------------ ###
  1380.  
  1381. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1382.  
  1383. bj10e.dev: $(bj10e_)
  1384.     $(SHP)gssetdev bj10e $(bj10e_)
  1385.  
  1386. bj200.dev: $(bj10e_)
  1387.     $(SHP)gssetdev bj200 $(bj10e_)
  1388.  
  1389. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1390.  
  1391. ### -------------------------- The DigiFAX device ----------------------- ###
  1392. ###    This driver outputs images in a format suitable for use with       ###
  1393. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1394. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1395. ### Note: this driver was contributed by a user: please contact           ###
  1396. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1397.  
  1398. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1399. dfaxhigh.dev: $(digifax_)
  1400.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1401.  
  1402. dfaxlow.dev: $(digifax_)
  1403.     $(SHP)gssetdev dfaxlow $(digifax_)
  1404.  
  1405. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1406.  
  1407. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1408.  
  1409. ### These are essentially the same device.
  1410. ### You can make A4 paper the default: see below.
  1411. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1412. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1413.  
  1414. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1415. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1416.  
  1417. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1418.  
  1419. # To make A4 paper the default, change the second line below this to
  1420. #    $(CCC) -DA4 gdevdjet.c
  1421. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1422.     $(CCC) gdevdjet.c
  1423.  
  1424. deskjet.dev: $(HPMONO)
  1425.     $(SHP)gssetdev deskjet $(HPMONO)
  1426.  
  1427. djet500.dev: $(HPMONO)
  1428.     $(SHP)gssetdev djet500 $(HPMONO)
  1429.  
  1430. laserjet.dev: $(HPMONO)
  1431.     $(SHP)gssetdev laserjet $(HPMONO)
  1432.  
  1433. ljetplus.dev: $(HPMONO)
  1434.     $(SHP)gssetdev ljetplus $(HPMONO)
  1435.  
  1436. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1437. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1438.  
  1439. ljet2p.dev: $(HPMONO)
  1440.     $(SHP)gssetdev ljet2p $(HPMONO)
  1441.  
  1442. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1443. ### IIIp, IIId, IIIsi.
  1444.  
  1445. ljet3.dev: $(HPMONO)
  1446.     $(SHP)gssetdev ljet3 $(HPMONO)
  1447.  
  1448. ### Selecting ljet4 also provides Delta Row compression on LaserJet IV series.
  1449.  
  1450. ljet4.dev: $(HPMONO)
  1451.     $(SHP)gssetdev ljet4 $(HPMONO)
  1452.  
  1453. ###- The H-P DeskJet 500C/550C and PaintJet family color printer devices -###
  1454. ### Note: there are two different 500C drivers, both contributed by users.###
  1455. ###   If you have questions about the djet500c driver,                    ###
  1456. ###       please contact AKayser@et.tudelft.nl.                           ###
  1457. ###   If you have questions about the cdj* drivers,                       ###
  1458. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1459.  
  1460. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1461.  
  1462. cdeskjet.dev: $(cdeskjet_)
  1463.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1464.  
  1465. cdjcolor.dev: $(cdeskjet_)
  1466.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1467.  
  1468. cdjmono.dev: $(cdeskjet_)
  1469.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1470.  
  1471. cdj500.dev: $(cdeskjet_)
  1472.     $(SHP)gssetdev cdj500 $(cdeskjet_)
  1473.  
  1474. cdj550.dev: $(cdeskjet_)
  1475.     $(SHP)gssetdev cdj550 $(cdeskjet_)
  1476.  
  1477. declj250.dev: $(cdeskjet_)
  1478.     $(SHP)gssetdev declj250 $(cdeskjet_)
  1479.  
  1480. pj.dev: $(cdeskjet_)
  1481.     $(SHP)gssetdev pj $(cdeskjet_)
  1482.  
  1483. pjxl.dev: $(cdeskjet_)
  1484.     $(SHP)gssetdev pjxl $(cdeskjet_)
  1485.  
  1486. pjxl300.dev: $(cdeskjet_)
  1487.     $(SHP)gssetdev pjxl300 $(cdeskjet_)
  1488.  
  1489. # NB: you can also customise the build if required, using -DA4 (for A4 paper)
  1490. # and -DBitsPerPixel=<number> if you wish the default to be other than 24
  1491. # for the generic drivers (cdj500, cdj550, pjxl300, pjtest, pjxltest).
  1492. # E.g,. to make A4 paper the default, change the second line below this to
  1493. #    $(CCC) -DA4 gdevdjet.c
  1494. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1495.     $(CCC) gdevcdj.c
  1496.  
  1497. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1498. djet500c.dev: $(djet500c_)
  1499.     $(SHP)gssetdev djet500c $(djet500c_)
  1500.  
  1501. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1502.  
  1503. ### ----------------- The generic Epson printer device ----------------- ###
  1504.  
  1505. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1506.  
  1507. epson.dev: $(epson_)
  1508.     $(SHP)gssetdev epson $(epson_)
  1509.  
  1510. eps9high.dev: $(epson_)
  1511.     $(SHP)gssetdev eps9high $(epson_)
  1512.  
  1513. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  1514.  
  1515. ### ----------------- The IBM Proprinter printer device ---------------- ###
  1516.  
  1517. ibmpro.dev: $(epson_)
  1518.     $(SHP)gssetdev ibmpro $(epson_)
  1519.  
  1520. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1521. ### Note: this driver was contributed by users: please contact           ###
  1522. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1523.  
  1524. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1525. epsonc.dev: $(epsonc_)
  1526.     $(SHP)gssetdev epsonc $(epsonc_)
  1527.  
  1528. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH)
  1529.  
  1530. ### -------------- The Epson ESC/P 2 language printer device ----------- ###
  1531. ### Note: this driver was contributed by a user: if you have questions,  ###
  1532. ###       please contact Richard Brown (rab@tauon.ph.unimelb.edu.au).    ###
  1533.  
  1534. escp2_=gdevescp.$(OBJ) gdevprn.$(OBJ)
  1535. escp2.dev: $(escp2_)
  1536.     $(SHP)gssetdev escp2 $(escp2_)
  1537.  
  1538. gdevescp.$(OBJ): gdevescp.c $(PDEVH)
  1539.  
  1540. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1541. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1542. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1543. ### If you have questions about the XL, please contact Rob Reiss         ###
  1544. ###       (rob@moray.berkeley.edu).                                      ###
  1545.  
  1546. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1547.  
  1548. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1549.  
  1550. lj250.dev: $(PJET)
  1551.     $(SHP)gssetdev lj250 $(PJET)
  1552.  
  1553. paintjet.dev: $(PJET)
  1554.     $(SHP)gssetdev paintjet $(PJET)
  1555.  
  1556. pjetxl.dev: $(PJET)
  1557.     $(SHP)gssetdev pjetxl $(PJET)
  1558.  
  1559. ### ------- The IBM 3852 JetPrinter color inkjet printer device -------- ###
  1560. ### Note: this driver was contributed by users: please contact           ###
  1561. ###       Kevin Gift (kgift@draper.com) if you have questions.           ###
  1562. ### Note that the paper size that can be addressed by the graphics mode  ###
  1563. ###   used in this driver is fixed at 7-1/2 inches wide (the printable   ###
  1564. ###   width of the jetprinter itself.)                                   ###
  1565.  
  1566. jetp3852_=gdev3852.$(OBJ) gdevprn.$(OBJ)
  1567. jetp3852.dev: $(jetp3852_)
  1568.     $(SHP)gssetdev jetp3852 $(jetp3852_)
  1569.  
  1570. gdevjetp.$(OBJ): gdevjetp.c $(PDEVH) $(gdevpcl_h)
  1571.  
  1572. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1573. ### Note: this driver was contributed by users: please contact           ###
  1574. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1575. ### Note that the standard paper size for this driver is the European    ###
  1576. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1577.  
  1578. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1579. lbp8.dev: $(lbp8_)
  1580.     $(SHP)gssetdev lbp8 $(lbp8_)
  1581.  
  1582. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1583.  
  1584. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1585. ### Note: this driver was contributed by users: please contact           ###
  1586. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1587. ### For questions about LA50 and LA75: please contact                    ###
  1588. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                     ###
  1589. ### For the LN03, you can make A4 paper the default: see below.          ###
  1590.  
  1591. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1592. ln03.dev: $(ln03_)
  1593.     $(SHP)gssetdev ln03 $(ln03_)
  1594.  
  1595. la50.dev: $(ln03_)
  1596.     $(SHP)gssetdev la50 $(ln03_)
  1597.  
  1598. la75.dev: $(ln03_)
  1599.     $(SHP)gssetdev la75 $(ln03_)
  1600.  
  1601. # To make A4 paper the default, change the second line below this to
  1602. #    $(CCC) -DA4 gdevln03.c
  1603. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1604.     $(CCC) gdevln03.c
  1605.  
  1606. ### -------------- The C.Itoh M8510 printer device --------------------- ###
  1607. ### Note: this driver was contributed by a user: please contact Bob      ###
  1608. ###       Smith <bob@snuffy.penfield.ny.us> if you have questions.       ###
  1609.  
  1610. m8510_=gdev8510.$(OBJ) gdevprn.$(OBJ)
  1611. m8510.dev: $(m8510_)
  1612.     $(SHP)gssetdev m8510 $(m8510_)
  1613.  
  1614. gdev8510.$(OBJ): gdev8510.c $(PDEVH)
  1615.  
  1616. ### --------------------- The NEC P6 family devices -------------------- ###
  1617.  
  1618. necp6_=gdevnp6.$(OBJ) gdevprn.$(OBJ)
  1619. necp6.dev: $(necp6_)
  1620.     $(SHP)gssetdev necp6 $(necp6_)
  1621.  
  1622. gdevnp6.$(OBJ): gdevnp6.c $(PDEVH)
  1623.  
  1624. ### ----------------- The Okidata MicroLine 182 device ----------------- ###
  1625. ### Note: this driver was contributed by a user: please contact          ###
  1626. ###       Maarten Koning (smeg@bnr.ca) if you have questions.            ###
  1627.  
  1628. oki182_=gdevo182.$(OBJ) gdevprn.$(OBJ)
  1629. oki182.dev: $(oki182_)
  1630.     $(SHP)gssetdev oki182 $(oki182_)
  1631.  
  1632. gdevo182.$(OBJ): gdevo182.c $(PDEVH)
  1633.  
  1634. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1635. ### Note: this driver was contributed by users:                          ###
  1636. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1637.  
  1638. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1639. r4081.dev: $(r4081_)
  1640.     $(SHP)gssetdev r4081 $(r4081_)
  1641.  
  1642. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1643.  
  1644. ###### ------------------------ Sony devices ------------------------ ######
  1645. ### Note: these drivers were contributed by users: please contact        ###
  1646. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1647.  
  1648. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1649.  
  1650. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1651. sonyfb.dev: $(sonyfb_)
  1652.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1653.  
  1654. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1655.  
  1656. ### -------------------- Sony NWP533 printer device -------------------- ###
  1657. ### Note: this driver was contributed by a user: please contact Tero     ###
  1658. ###       Kivinen (kivinen@joker.cs.hut.fi) if you have questions.       ###
  1659.  
  1660. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1661. nwp533.dev: $(nwp533_)
  1662.     $(SHP)gssetdev nwp533 $(nwp533_)
  1663.  
  1664. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1665.  
  1666. ### ------------------------- The SPARCprinter ------------------------- ###
  1667. ### Note: this driver was contributed by users: please contact Martin    ###
  1668. ###       Schulte (schulte@thp.uni-koeln.de) if you have questions.      ###
  1669. ###       He would also like to hear from anyone using the driver.       ###
  1670. ### Please consult the source code for additional documentation.         ###
  1671.  
  1672. sparc_=gdevsppr.$(OBJ) gdevprn.$(OBJ)
  1673. sparc.dev: $(sparc_)
  1674.     $(SHP)gssetdev sparc $(sparc_)
  1675.  
  1676. gdevsppr.$(OBJ): gdevsppr.c $(PDEVH)
  1677.  
  1678. ###### --------------------- The SunView device --------------------- ######
  1679. ### Note: this driver is maintained by a user: if you have questions,    ###
  1680. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1681.  
  1682. sunview_=gdevsun.$(OBJ)
  1683. sunview.dev: $(sunview_)
  1684.     $(SHP)gssetdev sunview $(sunview_)
  1685.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1686.  
  1687. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1688.  
  1689. ### ----------------- Tektronix 4396d color printer -------------------- ###
  1690. ### Note: this driver was contributed by a user: please contact          ###
  1691. ###       Karl Hakimian (hakimian@haney.eecs.wsu.edu)                    ###
  1692. ###       if you have questions.                                         ###
  1693.  
  1694. t4693d_=gdev4693.$(OBJ) gdevprn.$(OBJ)
  1695. t4693d2.dev: $(t4693d_)
  1696.     $(SHP)gssetdev t4693d2 $(t4693d_)
  1697.  
  1698. t4693d4.dev: $(t4693d_)
  1699.     $(SHP)gssetdev t4693d4 $(t4693d_)
  1700.  
  1701. t4693d8.dev: $(t4693d_)
  1702.     $(SHP)gssetdev t4693d8 $(t4693d_)
  1703.  
  1704. gdev4693.$(OBJ): gdev4693.c $(GDEV)
  1705.  
  1706. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1707. ### Note: this driver was contributed by a user: please contact          ###
  1708. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1709.  
  1710. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1711. tek4696.dev: $(tek4696_)
  1712.     $(SHP)gssetdev tek4696 $(tek4696_)
  1713.  
  1714. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1715.  
  1716. ### ----------------- The TruFax facsimile device ---------------------- ###
  1717. ### Note: this driver was contributed by users: please contact           ###
  1718. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1719. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1720. ###   makers of the TruFax product.                                      ###
  1721.  
  1722. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1723. trufax.dev: $(trufax_)
  1724.     $(SHP)gssetdev trufax $(trufax_)
  1725.  
  1726. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1727.  
  1728. ###### ----------------------- The X11 device ----------------------- ######
  1729.  
  1730. # Aladdin Enterprises does not support Ghostview.  For more information
  1731. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1732.  
  1733. x11_=gdevx.$(OBJ) gdevxini.$(OBJ) gdevxxf.$(OBJ) gdevemap.$(OBJ)
  1734. x11.dev: $(x11_)
  1735.     $(SHP)gssetdev x11 $(x11_)
  1736.     $(SHP)gsaddmod x11 -lib X11:sasc/lib/X11.lib
  1737.  
  1738. # See the main makefile for the definition of XINCLUDE.
  1739. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1740. gdevx.$(OBJ): gdevx.c $(GDEVX) $(gsprops_h) $(gsutil_h)
  1741.     $(CCC) $(XINCLUDE) gdevx.c
  1742.  
  1743. gdevxini.$(OBJ): gdevxini.c $(GDEVX) $(ctype__h)
  1744.     $(CCC) $(XINCLUDE) gdevxini.c
  1745.  
  1746. gdevxxf.$(OBJ): gdevxxf.c $(GDEVX) $(gsutil_h) $(gxxfont_h)
  1747.     $(CCC) $(XINCLUDE) gdevxxf.c
  1748.  
  1749. ### ---------------------- The bit bucket device ----------------------- ###
  1750.  
  1751. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1752. bit.dev: $(bit_)
  1753.     $(SHP)gssetdev bit $(bit_)
  1754.  
  1755. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1756.  
  1757. ###### ----------------------- PC file formats ---------------------- ######
  1758.  
  1759. gdevpccm.$(OBJ): gdevpccm.c $(AK) \
  1760.   $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1761.  
  1762. ### ------------------------- .BMP file formats ------------------------- ###
  1763.  
  1764. bmp_=gdevbmp.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1765.  
  1766. gdevbmp.$(OBJ): gdevbmp.c $(PDEVH) $(gdevpccm_h)
  1767.  
  1768. bmpmono.dev: $(bmp_)
  1769.     $(SHP)gssetdev bmpmono $(bmp_)
  1770.  
  1771. bmp16.dev: $(bmp_)
  1772.     $(SHP)gssetdev bmp16 $(bmp_)
  1773.  
  1774. bmp256.dev: $(bmp_)
  1775.     $(SHP)gssetdev bmp256 $(bmp_)
  1776.  
  1777. bmp16m.dev: $(bmp_)
  1778.     $(SHP)gssetdev bmp16m $(bmp_)
  1779.  
  1780. ### ------------------------- PCX file formats ------------------------- ###
  1781.  
  1782. pcx_=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1783.  
  1784. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h) $(gxlum_h)
  1785.  
  1786. pcxmono.dev: $(pcx_)
  1787.     $(SHP)gssetdev pcxmono $(pcx_)
  1788.  
  1789. pcxgray.dev: $(pcx_)
  1790.     $(SHP)gssetdev pcxgray $(pcx_)
  1791.  
  1792. pcx16.dev: $(pcx_)
  1793.     $(SHP)gssetdev pcx16 $(pcx_)
  1794.  
  1795. pcx256.dev: $(pcx_)
  1796.     $(SHP)gssetdev pcx256 $(pcx_)
  1797.  
  1798. ###### ------------------- Portable Bitmap devices ------------------ ######
  1799. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1800.  
  1801. pxm_=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1802.  
  1803. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1804.  
  1805. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1806.  
  1807. pbm.dev: $(pxm_)
  1808.     $(SHP)gssetdev pbm $(pxm_)
  1809.  
  1810. pbmraw.dev: $(pxm_)
  1811.     $(SHP)gssetdev pbmraw $(pxm_)
  1812.  
  1813. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1814.  
  1815. pgm.dev: $(pxm_)
  1816.     $(SHP)gssetdev pgm $(pxm_)
  1817.  
  1818. pgmraw.dev: $(pxm_)
  1819.     $(SHP)gssetdev pgmraw $(pxm_)
  1820.  
  1821. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1822.  
  1823. ppm.dev: $(pxm_)
  1824.     $(SHP)gssetdev ppm $(pxm_)
  1825.  
  1826. ppmraw.dev: $(pxm_)
  1827.     $(SHP)gssetdev ppmraw $(pxm_)
  1828.  
  1829. ### -------------------------- TIFF/F device ---------------------------- ###
  1830. ###    This driver outputs images in a TIFF format               ###
  1831. ###    Use -sDEVICE=tiffg3 and                          ###
  1832. ###      -r204x98 for low resolution output, or              ###
  1833. ###      -r204x196 for high resolution output                  ###
  1834. ###    Note also that 3 page sizes are understood: letter, A4, and B4      ###
  1835. ### Note: this driver was contributed by a user: please contact           ###
  1836. ###       Sam Leffler (sam@sgi.com) if you have questions.              ###
  1837.  
  1838. tiffg3_=gdevtiff.$(OBJ) gdevprn.$(OBJ)
  1839. tiffg3.dev: $(tiffg3_)
  1840.     $(SHP)gssetdev tiffg3 $(tiffg3_)
  1841. gdevtiff.$(OBJ): gdevtiff.c $(GDEV) $(gdevprn_h) gdevdfg3.h gdevtiff.h
  1842. #    Copyright (C) 1990, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1843. #
  1844. # This file is part of Ghostscript.
  1845. #
  1846. # Ghostscript is distributed in the hope that it will be useful, but
  1847. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1848. # to anyone for the consequences of using it or for whether it serves any
  1849. # particular purpose or works at all, unless he says so in writing.  Refer
  1850. # to the Ghostscript General Public License for full details.
  1851. #
  1852. # Everyone is granted permission to copy, modify and redistribute
  1853. # Ghostscript, but only under the conditions described in the Ghostscript
  1854. # General Public License.  A copy of this license is supposed to have been
  1855. # given to you along with Ghostscript so you can know your rights and
  1856. # responsibilities.  It should be in a file named COPYING.  Among other
  1857. # things, the copyright notice and this notice must be preserved on all
  1858. # copies.
  1859.  
  1860. # Partial makefile for Ghostscript, common to all Unix configurations.
  1861.  
  1862. # This is the last part of the makefile for Unix configurations.
  1863. # Since Unix make doesn't have an 'include' facility, we concatenate
  1864. # the various parts of the makefile together by brute force (in tar_cat).
  1865.  
  1866. # The following prevents GNU make from constructing argument lists that
  1867. # include all environment variables, which can easily be longer than
  1868. # brain-damaged system V allows.
  1869.  
  1870. .NOEXPORT:
  1871.  
  1872. # -------------------------------- Library -------------------------------- #
  1873.  
  1874. ## The Unix platforms
  1875.  
  1876. # We have to include a test for the existence of sys/time.h,
  1877. # because some System V platforms don't have it.
  1878.  
  1879. # All reasonable Unix platforms.
  1880. unix__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gdevpipe.$(OBJ)
  1881. unix_.dev: $(unix__)
  1882.     $(SHP)gssetmod unix_ $(unix__)
  1883.     $(SHP)gsaddmod unix_ -fdev pipe
  1884.  
  1885. gp_unix.$(OBJ): gp_unix.c $(AK) $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1886.  $(gsutil_h) $(stat__h) $(time__h)
  1887.     $(CCC) gp_unix.c
  1888. #    if ( test -f include/sys/time.h ) then $(CCC) gp_unix.c;\
  1889. #    else $(CCC) -DNOSYSTIME gp_unix.c; fi
  1890.  
  1891. gdevpipe.$(OBJ): gdevpipe.c $(AK) $(stdio__h) $(gstypes_h) \
  1892.   $(filedev_h) $(stream_h)
  1893.  
  1894. # Brain-damaged System V platforms.
  1895. sysv__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_sysv.$(OBJ)
  1896. sysv_.dev: $(sysv__)
  1897.     $(SHP)gssetmod sysv_ $(sysv__)
  1898.  
  1899. gp_sysv.$(OBJ): gp_sysv.c $(time__h) $(AK)
  1900.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_sysv.c;\
  1901.     else $(CCC) -DNOSYSTIME gp_sysv.c; fi
  1902.  
  1903. # -------------------------- Auxiliary programs --------------------------- #
  1904.  
  1905. ansi2knr$(XE): ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  1906.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1907.  
  1908. echogs$(XE): echogs.c
  1909.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c -Llib -lunix -lm
  1910.  
  1911. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  1912. # produces a buggy executable.
  1913. genarch$(XE): genarch.c
  1914.     $(CC) -o genarch$(XE) genarch.c -Iinclude -Llib -lunix -lm
  1915.  
  1916. genconf$(XE): genconf.c
  1917.     $(CC) -o genconf$(XE) genconf.c -Iinclude -Llib -lunix -lm
  1918.  
  1919. # ----------------------------- Main program ------------------------------ #
  1920.  
  1921. BEGINFILES=
  1922. CCBEGIN=$(CCC) *.c
  1923.  
  1924. # Interpreter main program
  1925.  
  1926. GSUNIX=gs.$(OBJ) gsmain.$(OBJ) $(INT) $(LIBGS)
  1927.  
  1928. # The second call on echogs writes a space. This is the only
  1929. # way to do it that works with all flavors of shell!
  1930. $(GS)$(XE): $(GSUNIX) ld.tr echogs $(ALL_DEVS)
  1931.     ./echogs -n - $(GSUNIX) >_temp_
  1932.     ./echogs -x 20 >>_temp_
  1933.     cat ld.tr >>_temp_
  1934.     $(CC) $(LDFLAGS) $(XLIBDIRS) -o $(GS)$(XE) with _temp_ $(EXTRALIBS) -lm
  1935.  
  1936. # Installation
  1937.  
  1938. TAGS:
  1939.     etags -t *.c *.h
  1940.  
  1941. docdir=$(gsdatadir)/doc
  1942. exdir=$(gsdatadir)/examples
  1943.  
  1944. install: $(GS)
  1945.     -mkdir $(bindir)
  1946.     for f in $(GS) gsbj gsdj gslj gslp gsnd bdftops font2c ps2ascii ps2epsi ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
  1947.     -mkdir $(datadir)
  1948.     -mkdir $(gsdatadir)
  1949.     for f in README gslp.ps gs_init.ps gs_dps1.ps gs_fonts.ps gs_lev2.ps gs_statd.ps gs_type0.ps gs_dbt_e.ps gs_sym_e.ps quit.ps Fontmap uglyr.gsf bdftops.ps decrypt.ps font2c.ps impath.ps landscap.ps level1.ps prfont.ps ps2ascii.ps ps2epsi.ps ps2image.ps pstoppm.ps showpage.ps type1ops.ps wrfont.ps ; do $(INSTALL_DATA) $$f $(gsdatadir)/$$f ; done
  1950.     -mkdir $(docdir)
  1951.     for f in NEWS ansi2knr.1 devices.doc drivers.doc fonts.doc gs.1 hershey.doc history.doc humor.doc language.doc lib.doc make.doc ps2epsi.doc psfiles.doc readme.doc use.doc xfonts.doc ; do $(INSTALL_DATA) $$f $(docdir)/$$f ; done
  1952.     -mkdir $(exdir)
  1953.     for f in chess.ps cheq.ps colorcir.ps golfer.ps escher.ps snowflak.ps tiger.ps ; do $(INSTALL_DATA) $$f $(exdir)/$$f ; done
  1954.